/**
 * 文件名：LogisticsVehicle.java
 *
 * 创建人：Fyh - 1009173473@qq.com
 *
 * 创建时间：2019年9月25日 下午5:01:33
 *
 * 版权所有：南京植百汇智能科技服务有限公司
 */
package com.z100h.supplychain.evidence.entity;

import java.math.BigDecimal;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.jeeplus.common.utils.StringUtils;
import com.jeeplus.core.persistence.DataEntity;
import com.z100h.supplychain.core.VehicleState;

/**
 * [描述信息：说明类的基本功能]
 *
 * @author Fyh - 1009173473@qq.com
 * @version 1.0 Created on 2019年9月25日 下午5:01:33
 */
public class LogisticsVehicle extends DataEntity<LogisticsVehicle> {

	private static final long serialVersionUID = 1L;

	private String id;

	private String vehicleType;

	private Integer vehicleAmount;

	private BigDecimal vehiclePrice;

	private Integer workerAmount;

	private BigDecimal workerPrice;

	private String deliveryDate;

	private String state;

	private String stateName;

	private String customerName;

	private String finishOp;

	private String finishDate;

	private String assignor;

	public LogisticsVehicle() {
		super();
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this, ToStringStyle.JSON_STYLE);
	}

	@Override
	public String getId() {
		return id;
	}

	@Override
	public void setId(String id) {
		this.id = id;
	}

	public String getVehicleType() {
		return vehicleType;
	}

	public void setVehicleType(String vehicleType) {
		this.vehicleType = vehicleType;
	}

	public Integer getVehicleAmount() {
		return vehicleAmount;
	}

	public void setVehicleAmount(Integer vehicleAmount) {
		this.vehicleAmount = vehicleAmount;
	}

	public BigDecimal getVehiclePrice() {
		return vehiclePrice;
	}

	public void setVehiclePrice(BigDecimal vehiclePrice) {
		this.vehiclePrice = vehiclePrice;
	}

	public Integer getWorkerAmount() {
		return workerAmount;
	}

	public void setWorkerAmount(Integer workerAmount) {
		this.workerAmount = workerAmount;
	}

	public BigDecimal getWorkerPrice() {
		return workerPrice;
	}

	public void setWorkerPrice(BigDecimal workerPrice) {
		this.workerPrice = workerPrice;
	}

	public String getDeliveryDate() {
		return deliveryDate;
	}

	public void setDeliveryDate(String deliveryDate) {
		this.deliveryDate = deliveryDate;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		if (StringUtils.isNoneBlank(state)) {
			this.stateName = VehicleState.get(state).getName();
		}
		this.state = state;
	}

	public String getStateName() {
		return stateName;
	}

	public void setStateName(String stateName) {
		this.stateName = stateName;
	}

	public String getCustomerName() {
		return customerName;
	}

	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}

	public String getFinishOp() {
		return finishOp;
	}

	public void setFinishOp(String finishOp) {
		this.finishOp = finishOp;
	}

	public String getFinishDate() {
		return finishDate;
	}

	public void setFinishDate(String finishDate) {
		this.finishDate = finishDate;
	}

	public String getAssignor() {
		return assignor;
	}

	public void setAssignor(String assignor) {
		this.assignor = assignor;
	}

}
